package atguigu.str;

public class BinTest {

    public static void main(String[] args) {

        // 定义一个二进制数
        byte x = 0b01101100;
        byte y = (byte) (x << (byte)1);
        System.out.println(x);
        System.out.println(y);
        System.out.println(Integer.toBinaryString(y));
        byte z = (byte)(y & (byte) 0x80) ;
        System.out.println(Integer.toBinaryString(z));
        if(((byte)(y & 0x80)) >= (byte)0x80){
            System.out.println(true);
        }else{
            System.out.println(false);
        }

    }
}
